<div>
	<div class="d-yuanjiao-10 d-beijing-lanse">
		<div class="d-jindu-biaoti" >需求进度</div>
			<div class="d-jindu-kuang">
				<div class="d-jindu-neikuang">
					<div class="d-jindu-kuan100">
						<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
							<img src="{HOME_THEME_PATH}web/img/kaishi.svg" class="d-beijing-baise">
						</div>
					</div>
		            <div class="d-jindu-ziti {if $jindus['xuqiu']}d-jiacu d-beijing-wenzi-lanse{/if}">
						提需求
					</div>
					<div class="d-jindu-riqi ">
						{dr_date($_inputtime, 'Y-m-d')}
					</div>
					<div class="d-jindu-riqi ">
						{dr_date($_inputtime, 'H:i:s')}
					</div>
				</div>
		        <div class="d-jindu-neikuang d-quxian-0">
					<div class="d-jindu-kuan100">
						
							<div class="d-jindu-jtiao d-jindu-right d-jindu-lanse {if !$jindus['paiqi']}d-jindu-guodu{/if}">
				
							</div>
							{if $jindus['paiqi']}
								<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
									<img src="{HOME_THEME_PATH}web/img/kaishi.svg" class="d-beijing-baise">
								</div>
							{else}
								<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
									<img src="{HOME_THEME_PATH}web/img/shijian-1.png" class="d-beijing-baise">
								</div>
							{/if}
						
						
					</div>
					<a id="d_jindu_paiqi_{$id}" data-id="{$id}" data-quanid="{$index.id}" class="d-jindutiao-paiqi">
						<div class="d-jindu-ziti {if $jindus['paiqi']}d-jiacu d-beijing-wenzi-lanse{/if}">
							排期中
						</div>
					</a>
					<div class="d-jindu-riqi">
						{dr_date($jindus['paiqi']['inputtime'], 'Y-m-d')}
					</div>
					<div class="d-jindu-riqi">
						{dr_date($jindus['paiqi']['inputtime'], 'H:i:s')}
					</div>
				</div>
				<div class="d-jindu-neikuang d-quxian-0">
					<div class="d-jindu-kuan100">
						<div class="d-jindu-jtiao d-jindu-right {if $jindus['kaifa']}{else}{if $jindus['paiqi']}d-jindu-guodu{/if}{/if} {if $jindus['kaifa']} d-jindu-lanse {/if} ">
							
						</div>
						{if $jindus['kaifa']}
							<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
								<img src="{HOME_THEME_PATH}web/img/kaishi.svg" class="d-beijing-baise">
							</div>
						{else}
							<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
								<img src="{HOME_THEME_PATH}web/img/kaifa.png">
							</div>
						{/if}
						
					</div>
					<a id="d_jindu_kaifa_{$id}" data-id="{$id}" data-quanid="{$index.id}" class="d-jindutiao-kaifa">
						<div class="d-jindu-ziti {if $jindus['kaifa']}d-jiacu d-beijing-wenzi-lanse{/if}">
							在开发
						</div>
					</a>
					<div class="d-jindu-riqi"> 
						{dr_date($jindus['kaifa']['inputtime'], 'Y-m-d')}
					</div>
					<div class="d-jindu-riqi">
						{dr_date($jindus['kaifa']['inputtime'], 'H:i:s')}
					</div>
				</div>
				<div class="d-jindu-neikuang d-quxian-0">
					<div class="d-jindu-kuan100">
						<div class="d-jindu-jtiao d-jindu-right  {if $jindus['wancheng']}{else}{if $jindus['kaifa']} d-jindu-guodu {/if}{/if} {if $jindus['wancheng']}d-jindu-lanse  {/if}">
							
						</div>
						{if $jindus['wancheng']}
							<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
								<img src="{HOME_THEME_PATH}web/img/kaishi.svg" class="d-beijing-baise">
							</div>
						{else}
							<div class="d-jindu-tu">
								<img src="{HOME_THEME_PATH}web/img/daoji.png">
							</div>
						{/if}
						
					</div>
					<a id="d_jindu_wancheng_{$id}" data-id="{$id}" data-quanid="{$index.id}" class="d-jindutiao-wancheng">
						<div class="d-jindu-ziti {if $jindus['wancheng']}d-jiacu d-beijing-wenzi-lanse{/if}">
							已上线
						</div>
					</a>
					<div class="d-jindu-riqi {if $jindus['wancheng']}d-beijing-wenzi-lanse{/if}"> 
						{dr_date($jindus['wancheng']['inputtime'], 'Y-m-d')}
					</div>
					<div class="d-jindu-riqi {if $jindus['wancheng']}d-beijing-wenzi-lanse{/if}">
						{dr_date($jindus['wancheng']['inputtime'], 'H:i:s')}
					</div>
				</div>
			</div>
		</div>
	
</div>

<script>
	{if $index['uid'] == $member.uid}
	 // 排期
	 $(".d-jindutiao-paiqi").click(function(){
		 var id = $(this).data("id");
		 var quanid = $(this).data("quanid");
		 $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=jindupaiqi&id="+id+"&quanid="+quanid, function(data){
			 dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
			 if (data.msg.value=="排期中") {
				window.location.reload();
			}else{
				window.location.reload();
			}
		 }, 'json');
	 });
	// 开发
	$(".d-jindutiao-kaifa").click(function(){
			 var id = $(this).data("id");
			 var quanid = $(this).data("quanid");
			 $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=jindukaifa&id="+id+"&quanid="+quanid, function(data){
				 dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
				 if (data.msg.value=="开启开发") {
					window.location.reload();
				}else{
					window.location.reload();
				}
			 }, 'json');
	});
	// 完成
	$(".d-jindutiao-wancheng").click(function(){
			 var id = $(this).data("id");
			 var quanid = $(this).data("quanid");
			 $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=jinduwancheng&id="+id+"&quanid="+quanid, function(data){
				 dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
				 if (data.msg.value=="完成开发") {
					window.location.reload();
				}else{
					window.location.reload();
				}
			 }, 'json');
	});
	{/if}
</script>